package com.yang.springcloudalibaba.dao;

import com.yang.springcloud.pojo.Menu;

import java.util.Map;

public interface MenuDao {
    public Map<String, Object> queryMenu(int menuid);

    public void getMenuList(Menu bm);

    public Map<String, Object> queryRoleMenu(int menuid, int roleid);

    public Map<String, Object> queryRoleMenuAsync(int menuid, int roleid) throws InterruptedException;

    public void getRoleMenuList(Menu bm, int roleid);

    public void getRoleMenuListAsync(Menu bm, int roleid) throws InterruptedException;


    public Map<String, Object> queryMysMenu(int menuid, int roleid);

    public void getMysMenuList(Menu bm, int roleid);

    public Map<String, Object> insertRoleMenu(int roleid, Menu menu);

    public Map<String, Object> insertRoleMenuAsync(int roleid, Menu menu) throws InterruptedException;

    public void putRoleMenuList(int roleid, Menu menu);

    public void putRoleMenuListAsync(int roleid, Menu menu) throws InterruptedException;

}
